/**
 * 
 */
package com.itmayiedu.config.web;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

import com.itmayiedu.interceptor.LoggerInterceptor;

/**
 * @author Administrator
 * @date 2019年5月4日
 */
@SuppressWarnings("deprecation")
@Configuration
public class LoggerConfiguration extends WebMvcConfigurerAdapter {
	
	@Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new LoggerInterceptor()).addPathPatterns("/**");
    }
}